Part Number Hot Search : 
3216C S08AW16A TA1007A 49BV1 X0403BF 00R12K TLPGE CA506
Product Description
Full Text Search
 

To Download XR68C92CJ-0A-EVB Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  exar corporation, 48720 kato road, fremont, ca 94538 ? (510) 668-7000 ? fax (510) 668-7017 xr68c92/192 plcc package description the xr68c92/192 is a dual universal asynchronous receiver and transmitter with 8 (xr68c92) / 16 (xr68c192) bytes transmit and receive fifo. the xr68c92/192 is a pin-to-pin compatible and an improved version of the xr68c681 and the philips scc68692 uart with faster data access and other additional features. the operating speed of the receiver and transmitter can be selected independently from a table of eighteen fixed baud rates, a 16x clock derived from a programmable counter/timer, or an external 1x or 16x clock. the baud rate generator and counter/timer can operate directly from a crystal or from external clock input. the xr68c92/192 provides a power-down mode in which the oscillator is stopped but the register contents are retained. the xr68c92/192 is fabricated in an advanced cmos process to achieve low power and high speed requirements. features added features in devices with top marking of "d2" and newer: ? 5 volt tolerant inputs ? pin to pin compatible and improved version of the scc68692 and xr68c681 ? enhanced multidrop mode operation with separate storage for address and data tags (9th bit) ? 8 bytes transmit/receive fifo (xr68c92) ? 16 bytes transmit/receive fifo (xr68c192) ? standard baud rates from 50bps to 230.4kbps ? non-standard baud rate of up to 1mbps ? transmit and receive trigger levels ? watch dog timer ? programmable clock source for receiver and trans- mitter of each channel ? single interrupt output ? 7 multipurpose inputs, 8 multipurpose outputs ? 2.97 to 5.5 volt operation ? programmable character lengths (5, 6, 7, 8) ? parity, framing, and over run error detection ? programmable 16-bit timer/counter ? on-chip crystal oscillator ? power down mode dual universal asynchronous receiver and transmitter august 2005 6 5 4 3 2 1 44 43 42 41 40 7 8 9 10 11 12 13 14 15 16 17 39 38 37 36 35 34 33 32 31 30 29 18 19 20 21 22 23 24 25 26 27 28 a3 ip0 r/-w -dtack rxb n.c. txb op1 op3 op5 op7 -cs -reset xtal2 xtal1 rxa n.c. txa op0 op2 op4 op6 d1 d3 d5 d7 gnd n.c. -int d6 d4 d2 d0 a2 ip1 a1 ip3 a0 n.c. vcc ip4 ip5 -iack ip2 xr68c92 xr68c192 part number package operating temperature device status xr68c92cp 40-lead pdip 0 c to + 70 c active. see the xr68c92cv for new designs. xr68c92cj 44-lead plcc 0 c to + 70 c active xr68c92cv 44-lead lqfp 0 c to + 70 c active xr68c92ip 40-lead pdip -40 c to + 85 c active. see the xr68c92iv for new designs. xr68c92ij 44-lead plcc -40 c to + 85 c active xr68c92iv 44-lead lqfp -40 c to + 85 c active xr68c192cj 44-lead plcc 0 c to + 70 c active xr68c192cv 44-lead lqfp 0 c to + 70 c active xr68c192ij 44-lead plcc -40 c to + 85 c active xr68c192iv 44-lead lqfp -40 c to + 85 c active ordering information rev. 1.33
xr68c92/192 2 rev. 1.33 40 pin dip package package description 44 pin lqfp package 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 a0 ip3 a1 ip1 a2 a3 ip0 r/-w -dtack rxb txb op1 op3 op5 op7 d1 d3 d5 d7 gnd vcc ip4 ip5 -iack ip2 -cs -reset xtal2 xtal1 rxa txa op0 op2 op4 op6 d0 d2 d4 d6 -int xr68c92 xr68c192 44 43 42 41 40 39 38 37 36 35 34 1 2 3 4 5 6 7 8 9 10 11 33 32 31 30 29 28 27 26 25 24 23 12 13 14 15 16 17 18 19 20 21 22 a3 ip0 r/-w -dtack rxb txb op1 op3 op5 op7 n.c. -cs -reset xtal2 xtal1 rxa txa op0 op2 op4 op6 n.c. a2 ip1 a1 ip3 a0 vcc vcc ip4 ip5 -iack ip2 d1 d3 d5 d7 gnd gnd -int d6 d4 d2 d0 xr68c92 xr68c192
xr68c92/192 3 rev. 1.33 block diagram d0-d7 r/-w -dtack -reset a0-a3 -cs -int xtal1 xtal2 interconnect bus lines & control signals clock & baud rate generator interrupt control logic register select logic data bus buffers & control logic channel b txb rxb flow control logic transmit shift register transmit fifo registers receive fifo registers flow control logic receive shift register watch dog timer txa rxa channel a flow control logic transmit shift register transmit fifo registers receive fifo registers flow control logic receive shift register watch dog timer op0-op 7 ip0-ip5 multi- purpose i/o control logic -iack
xr68c92/192 4 rev. 1.33 symbol description (* 44 pin lqfp) -reset 38 34 32 i master reset (active low). a low on this pin will reset all the outputs and internal registers. the transmitter output and the receiver input will be disabled during reset time. a0-a3 2,4, 1,3, 40,42, 6,7 5,6 44,1 i address select lines. to select internal registers. -iack 41 37 35 i interrupt acknowledge (active low). a low on this pin indicates that the cpu has received an interrupt. if not used, this pin should be tied to vcc. -dack 10 9 4 o data transfer acknowledge ( three-state active low output). a low on this pin indicates proper transfer of data between the cpu and xr68c92/192 during read, write and interrupt cycles. -cs 39 35 33 i chip select (active low). a low at this pin enables the data bus transfer operation. d0-d7 28,18 25,16 22,12 bi-directional data bus. eight bit, three state data bus to 27,19 24,17 21,13 i/o transfer information to or from the cpu. d0 is the least 26,20 23,18 20,14 significant bit of the data bus and the first serial data bit to be 25,21 22,19 19,15 received or transmitted. r/-w 9 8 3 i read/write strobe. when -cs is asserted, a high on this pin transfers the contents of the xr68c92/192 data bus to the cpu, and a low on this pin will transfer the contents of the cpu data bus to the addressed register. -int 24 21 18 o interrupt output (open drain, active low) this pin goes low upon occurrence of one or more of eight maskable interrupt conditions (when enabled by the interrupt mask register). cpu can read the interrupt status register to determine the interrupting condition(s). this output requires a 10k ohms pull-up resistor. xtal1 36 32 30 i crystal input 1 or external clock input. a crystal can be connected between this pin and xtal2 pin to utilize the internal oscillator circuit. an external clock can be used to clock internal circuit and baud rate generator for custom transmission rates. symbol pin signal pin description 44 40 44* type
xr68c92/192 5 rev. 1.33 symbol description (* 44 pin lqfp) xtal2 37 33 31 o crystal input 2 or buffered clock output. see xtal1. rxa, rxb 35,11 31,10 29,5 i serial data input. the serial information (data) received from serial port to xr68c92/192 receive input circuit. a mark (high) is logic one and a space (low) is logic zero.this input must be held at logic one when idle and during power down. txa, txb 33,13 30,11 28,6 o serial data output. the serial data is transmitted via this pin with additional start , stop and parity bits. this output will be held in mark (high) state during reset, local loop back mode or when the transmitter is disabled. ip0 8 7 2 i multi-purpose input or channel a clear-to-send (-ctsa active low). if not used, this pin should be tied to vcc. ip1 5 4 43 i multi-purpose input or channel b clear-to-send (-ctsb active low). if not used, this pin should be tied to vcc. ip2 40 36 34 i multi-purpose input or channel b receive external clock input (received data is sampled on the rising edge of the clock) or timer/counter external clock input. if not used, this pin should be tied to vcc or gnd. ip3 3 2 41 i multi-purpose input or channel a transmit external clock input. the transmit data is clocked on the falling edge of the clock. if not used, this pin should be tied to vcc or gnd. ip4 43 39 37 i multi-purpose input or channel a receive external clock input. the received data is clocked on the rising edge of the clock. if not used, this pin should be tied to vcc or gnd. ip5 42 38 36 i multi-purpose input or channel b transmit external clock input. the transmit data is clocked on the falling edge of the clock. if not used, this pin should be tied to vcc or gnd. op0 32 29 27 o multi-purpose output. general purpose output or channel a request-to-send (-rtsa active low). op1 14 12 7 o multi-purpose output. general purpose output or channel b request-to-send (-rtsb active low). op2 31 28 26 o multi-purpose output. general purpose output or one of the symbol pin signal pin description 44 40 44* type
xr68c92/192 6 rev. 1.33 symbol description (* 44 pin lqfp) following functions can be selected for this output pin by programming the output port confiuration register bits 1,0; txaclk1 -transmit 1x clock. txaclk16 -transmit 16x clock rxaclk1 -receive 1x clock op3 15 13 8 o multi-purpose output. general purpose output or one of the following functions can be selected for this output pin by programming the output port confiuration register bits 3,2; c/t -counter timer output (open drain output) txbclk1 -transmit 1x clock rxbclk1 -receive 1x clock op4 30 27 25 o multi-purpose output. general purpose output or one of the following functions can be selected for this output pin by programming the output port confiuration register bit 4; -rxardy -receive ready signal (open drain output) -rxafull - receive fifo full signal (open drain output) op5 16 14 9 o multi-purpose output. general purpose output or one of the following functions can be selected for this output pin by programming the output port confiuration register bit 5; -rxbrdy - receive ready signal (open drain output) -rxbfull - receive fifo full signal (open drain output) op6 29 26 24 o multi-purpose output. general purpose output or transmit a holding register empty interrupt (-txardy open drain out- put). op7 17 15 10 o multi-purpose output. general purpose output or transmit b holding register empty interrupt (-txbrdy open drain out- put) gnd 22 20 16,17 pwr signal and power ground. vcc 44 40 38,39 pwr power supply input, 2.97v to 5.5v. n.c. 1,12 - 11,23 no connection. 23,34 symbol pin signal pin description 44 40 44* type
xr68c92/192 7 rev. 1.33 internal control logic the internal control logic of the xr68c92/192 receives operation commands from the central processing unit (cpu) and generates appropriate signals to the inter- nal sections to control device operation. the internal control logic takes in the following inputs: ? -cs, which is the xr68c92/192 chip-select; ? r/-w which allows data transfers between the cpu and xr68c92/192via the data bus (d0 to d7); ? four register-select lines (a0 through a3) which are decoded to allow access to the registers within the xr68c92/192; ? -reset (reset), which initializes or resets all outputs and internal registers. communication channels a and b each communication channel includes a full-duplex asynchronous receiver/transmitter (uart). the oper- ating frequency for each receiver and each transmitter can be selected independently from the baud rate generator, the counter/timer (c/t), or from an exter- nal clock. the transmitter accepts parallel data from the cpu, converts it to a serial bit stream in the form of a character and outputs it on the transmit data output pin (txa, txb). the character consists of start, stop, and optional parity bits, the receiver accepts serial data on the receive data input pin (rxa, rxb), converts this serial input to parallel format, checks for a start bit, stop bit, parity bit (if any), framing error, overrun or break condition, and transfers the data byte to the cpu during read operations. timing logic the timing logic consists of ? a crystal oscillator, ? a baud rate generator (brg), ? clock selector logic, and ? a programmable 16-bit counter/timer (c/t). the crystal oscillator operates directly from a typical 3.6864 mhz crystal connected across the xtal1 and xtal2 inputs or from an external clock of the appropri- ate frequency connected to xtal1. the xtal1 clock serves as the basic timing reference for the baud rate generator, the c/t, and other internal circuits. the baud rate generator operates from the xtal1 clock input and can generate 28 commonly used data communication baud rates (if a typical 3.6864mhz crystal or clock is used) ranging from 50 to 230.4kbps by producing internal clock outputs at 16 times the actual baud rate. in addition, other baud rates can be derived by connecting 16x or 1x clocks to multi- purpose input port pins ip3 - ip6 that have alternate functions as receiver or transmitter clock inputs. clock selector logic consists of the clock selector register (csra, csrb), bits 0 & 2 of mode register 0 (mr0a, mr0b) and bit-7 of auxilliary control register (acr). these allow various combinations of these baud rates for receiver and transmitter of each chan- nel. see baud rate table on page 18 for more details. the programmable 16-bit counter/timer (c/t) can pro- duce a 16x clock for other baud rates by counting down its programmed clock source. users can program the 16 bit c/t within the xr68c92/192 to use one of several clock sources as its input. the output of the c/ t is available to the internal clock selectors and can also be programmed to appear at output op3. in the timer mode, the c/t acts as a programmable divider and can generate a square-wave output at op3. in the counter mode, the c/t can be started and stopped under program control. when stopped, the cpu can read its contents. the counter counts down the num- ber of pulses stored in the concatenation of the c/t upper register and c/t lower register and produces an interrupt. this is a system-oriented feature that can be used to record timeouts when implementing various application protocols. interrupt control logic the following registers are associated with the inter- rupt control logic: ? interrupt mask register (imr) ? interrupt status register (isr) ? auxiliary control register (acr) ? interrupt vector register (ivr) a single active-low interrupt output (-int) can notify the cpu that any of eight internal events has occurred. these eight events are described in the discussion of the interrupt status register (isr). user can program the interrupt mask register (imr) to allow only certain conditions to cause -int to be asserted while the cpu can read the isr to determine all currently active interrupting conditions. when an active-low interrupt acknowledge signal (-iack) from the cpu is asserted
xr68c92/192 8 rev. 1.33 while the xr68c92/192 has an interrupt pending, the xr68c92/192 will place the contents of the interrupt vector register (ivr, address 0x0c) on the data bus and assert the data transfer acknowledge signal (-dack). if the xr68c92/192 has no pending inter- rupt, it ignores the -iack cycles. in addition, users can program the parallel outputs op3 through op7 to provide discrete interrupt outputs for the transmitters, the receivers, and the c/t. see 'multi-purpose out- puts' section for details. data bus buffer (d0 - d7) the data bus buffer provides the interface between the external and internal data buses. it is controlled by the internal control logic to allow read and write data transfer operations to occur between the controlling cpu and xr68c92/192 by way of the eight parallel data lines (d0 through d7). multi-purpose inputs (ip0 - ip5) the states of the seven multi-purpose inputs (ip0 through ip5) can be read from the internal register ipr (address 0x0d). the bits in this register are the complements of the actual inputs - for example, if the ip0 is low, the corresponding bit in the ipr, bit-0 is a logic '1'. each of these inputs also has an alternate control function capability. the alternate functions can be enabled/disabled on a bit-by-bit basis. the table below shows how each of these inputs is configured for its special function. four change-of-state detectors are associated with inputs ip0, ip1, ip2, and ip3. if a high-to-low or low-to- high transition occurs on any of these inputs, the corresponding bit in the input port change register (ipcr - address 0x04) will be set accordingly. the sampling clock of the change detectors is the xtal1/ 96 tap of the baud rate generator, which is 38.4khz if xtal1 is 3.6864mhz. a new input level must be sampled on two consecutive sampling clocks to detect a change. also, users can program the xr68c92/192 to allow a change of state in any of the inputs ip0 through ip3 to generate an interrupt to the cpu. see description of the interrupt status register (isr, ad- dress 0x05) for details. the ipcr bits are cleared when the cpu reads the register. also see the baud rate table on page 18. multi-purpose outputs (op0 - op7) the eight output pins (op0 - op7) can either be used as general purpose outputs or can be used for alter- nate functions representing various conditions using - mode registers 1 and 2 (mr1a, mr1b, mr2a, mr2b) - output port configuration register (opcr) - set output port register (sopr), and - reset output port register (ropr). op0 and op1: the output op0 can function as the channel a request- to-send (-rtsa) output for either the transmitter (mr2a bit-5 = 1) or the receiver (mr1a bit-7 = 1). note that only one of these bits should be set to '1' at a given time. see the description of the transmitter rts and receiver rts in the 'transmitter' and 'receiver' sec- tions of this datasheet respectively. the output op1 acts as the channel b request-to-send (-rtsb) output input function programming ip0 -ctsa set mr2a bit-4 = 1 ip1 -ctsb set mr2b bit-4 = 1 ip2 c/t ext. clk set acr[6:4] = 000 ip3 txa ext. clk set csra[3:0] = 1110 or 1111 ip4 rxa ext. clk set csra[7:4] = 1110 or 1111 ip5 txb ext. clk set csrb[3:0] = 1110 or 1111 xtal1 xtal2 y1 c1 22-47pf c2 22-47pf 3.6864mhz 200 - 500 k ? xr68c92/192 figure 1: crystal connection
xr68c92/192 9 rev. 1.33 and is controlled in a similar way by the channel b registers. op2 - op7: the other outputs (op2 - op7) are configured via the opcr. please see the description under the opcr register for the details. crystal inputs (xtal1 & xtal2) if a crystal is used, it is connected between xtal1 and xtal2, in which case a capacitor of approximately 22 to 47 pf should be connected from each of these pins to ground (see figure 1). if an external cmos-level clock is used, the pin xtal2 must be left open. reset the xr68c92/192 can be reset by asserting the -reset signal or by programming the appropriate internal registers. a hardware reset (assertion of -reset) clears the following registers: ? status registers a and b (sra and srb) ? interrupt mask register (imr) ? interrupt status register (isr) ? output port configuration register (opcr) reset also performs the following operations: ? initializes the interrupt vector register (ivr) to 0x0f. ? places the outputs op0 through op7 in the high state ? places the counter/timer in counter mode ? places channels a and b in the inactive state with the transmitter serial-data outputs (txa and txb) in the mark (high) state. reset commands can be programmed through the command registers to reset the receiver, transmitter, error status, or break-change interrupts for each chan- nel. transmitter the transmitter converts the parallel data from the cpu to a serial bit stream on the transmitter output pin (txa, txb). it automatically sends a start bit followed by the programmed number of data bits, an optional parity bit, and the programmed number of stop bits. the least-significant bit is sent first. data is shifted out the transmit serial data output pin (txa, txb) on the falling edge of the programmed clock source (xtal1, ip3 or ip5: see csr bits 3:0). after the transmission of the stop bits, and a new character is not available in the transmit fifo, the transmitter serial data output (txa, txb) remains high. transmission resumes when the cpu loads a new character into the transmit fifo. if the transmitter receives a disable command (cra, crb bits 3:2), it will continue operating until the char- acter in the transmit shift register is completely sent out. other characters in the fifo are neither sent nor discarded, but will be sent when the transmitter is re- enabled. tx rts control: users can program the transmitter to automatically negate the request-to-send (rts) out- put (alternate function of op0 and op1 for channels a and b respectively) on completion of a message trans- mission (using mr2a, mr2b bit-5). if the transmitter is programmed to operate with rts control, the rts output must be manually asserted before each mes- sage is transmitted. also, the transmitter needs to be disabled after all the required data are loaded into the fifo. then, the rts output will be automatically negated when the transmit-shift register and the tx fifo are both empty. in automatic rts mode, no more characters can be written to the fifo after the trans- mitter is disabled. if auto clear-to-send (cts) control is enabled (using mr2a, mr2b bit-4), the cts input (alternate function of ip0 and ip1 for channels a and b respectively) must be asserted (low) in order for the character to be transmitted. if it gets negated (high) in the middle of a transmission, the character in the shift register is transmitted and the transmit data output (txa, txb) then remains in the marking state until ctsa, ctsb gets asserted again. the transmitter can also be forced to send a continu- ous low (space) condition by issuing the start-break command (see cra, crb bits 7:4). the state of cts is ignored by the transmitter when it is set to send a break. note: the terms assertion and negation will be used extensively to avoid confusion when dealing with a mixture of ?active low? and ?active high? signals. the term assert or assertion indicates that a signal is active or true, independent of whether that level is repre- sented by a high or low voltage. the term negate or negation indicates that a signal is inactive or false.
xr68c92/192 10 rev. 1.33 a start-break is deferred as long as the transmitter has characters to send, but if normal character transmis- sion is inhibited by cts, the start-break will proceed. the start-break must be terminated by a stop-break or a tx disable + tx reset before normal character transmission can resume. the channel a and b transmitters are enabled for data transmission through their respective command regis- ters (see cra, crb bits 3:2). the transmit fifo trigger levels (see mr0a, mr0b bits 4 and 5) are used to generate an interrupt request to the cpu on the -int pin. this is also reflected in the interrupt status regis- ter, isr bit-0 for channel a and bit-4 for channel b. this is different from the txrdy bit in the status register. the txrdy bit in the status register (sra, srb bit-2) indicates if the tx fifo has at least one empty location. this can also be programmed to appear at the output pin op6/op7. the txemt bit (sra, srb bit-3) indicates if both the tx fifo and the tx shift register are empty. the transmitter can be reset through a software com- mand (cra, crb bits 7:4). if it is reset, operation ceases immediately and must be enabled through the command register before resuming operation. reset also discards any characters in the fifo. receiver the channel a and b receivers are enabled for data reception through the respective channels command register (cra, crb bits 1:0). the channels receiver looks for the high-to-low (mark-to-space) transition of a start bit on the receiver serial-data input pin. if operating in 16x clock mode, the serial input data is re- sampled on the next 7 clocks. if the receiver serial data is sampled high, the start bit is invalid and the search for a valid start bit begins again. if receiver serial data is still low, a valid start bit is assumed and the receiver continues to sample the input at one bit time intervals (at the theoretical center of the bit) until the proper number of data bits and the parity bit (if any) have been assembled and one stop bit has been detected. if an 1x clock is used, data is sampled at one bit time intervals throughout, including the start bit. data on the receiver serial data input pin is sampled on the rising edge of the programmed clock source (xtal1, ip4 or ip6: see csr bits 7:4). in this process, the least significant bit is received first. the receiver buffer is composed of the fifo (8/16 locations in xr68c92/192 respectively) and a receive shift register connected to the receiver serial-data input. data is assembled in the shift register and loaded into the bottom most empty fifo location. if the character length is less than eight bits, the most significant unused bits are set to zero. if the stop bit is sampled as a 1, the receiver will immediately look for the next start bit. however, if the stop bit is sampled as a 0, either a framing error or a received break has occurred. if the stop bit is 0 and the data and parity (if any) are not all zero, it is a framing error. the damaged character is transferred to the fifo with the framing error flag set. if the receiver serial data remains low for one-half of the bit period after the stop bit was sampled, the receiver operates as if a new start bit transition has been detected. if the stop bit is 0 and the data and parity (if any) bits are also all zero, it is a break. a character consisting of all zeros will be loaded into the the fifo with the received-break bit (but not the framing error bit) set to one. the receiver serial-data input must return to a high condition for at least one-half bit time before a search for the next start bit begins. also, at this time, the received break bit is reset. the receiver can detect a break that starts in the middle of a character provided the break persists completely through the next character time or longer. when the break begins in the middle of a character, the receiver will place the damaged character in the fifo with the framing error bit set. then, provided the break persists through the next character time, the receiver will also place an all-zero character in the fifo with the re- ceived-break bit set. the parity error, framing error, overrun error, and received-break conditions (if any) set error and break flags in the status register at the received character boundary and are valid only when the receiver-ready bit (rxrdy) in the status register is set. the receiver-ready bit in the status register (sra, srb bit-0) is set whenever one or more characters are available to be read by the cpu. a read of the receiver buffer produces an output of data from the top of the fifo stack. after the read cycle, the data at the top of the fifo stack and its associated status bits are ?popped? and new data can be added at the bottom of the stack by the receive shift register. the fifo-full status bit (sra, srb bit-1) is set if all 8 (or 16) stack positions are filled with data. either the receiver-ready
xr68c92/192 11 rev. 1.33 or the fifo-full status bits can be selected to cause an interrupt (see mr1a, mr1b bit-6). in addition to the data byte, three status bits (parity error, framing error, and received break) are appended to each data character in the fifo (overrun is not). by programming the error-mode control bit (mr1a, mr1b bit-5), status can be provided for ?character? or ?block? modes. in the ?character? mode, the status register (sra, srb) is updated on a character-by-character basis and applies only to the character at the top of the fifo. thus, the status must be read before the char- acter is read. reading the character pops the data byte and its error flags off the fifo. in the ?block? mode, the status provided in the status register for the parity error, framing error, and received-break conditions are the logical or of these respective bits, for all the data bytes in the fifo stack since the last reset error command (see cra, crb bits 7:4) was issued. that is, beginning immediately after the last reset-error command was issued, a continuous logical-or function of corre- sponding status bits is produced in the status register as each character enters the fifo. the block mode is useful in applications requiring the exchange of blocks of information where the software overhead of checking each character's error flags cannot be tolerated. in this mode, entire messages can be received and only one data integrity check is per- formed at the end of each message. although data reception in this manner has speed advantages, there are also disadvantages. if an error occurs within a message the error will not be recognized until the final check is performed. also, there is no indication of which character(s) is in error within the message. reading the status register (sra, srb) does not affect the fifo. the fifo is ?popped? only when the receive buffer is read. if the fifo is full when a new character is received, that character is held in the receive shift register until a fifo position is available. if an addi- tional character is received while this state exists, the contents of the fifo are not affected, but the character previously in the shift register is lost and the overrun- error status bit will be set upon receipt of the start bit of the new overrunning character. to support flow control, a receiver can automatically negate and reassert the request-to-send (rts) output (rx rts control - see mr1a, mr1b bit-7). the re- quest-to-send output (at op0 or op1 for channel a or b respectively) will automatically be negated by the receiver when a valid start bit is received and the fifo stack is full. when a fifo position becomes available, the request-to-send output will be reasserted auto- matically by the receiver. connecting the request-to- send output to the clear-to send (cts) input of a transmitting device prevents overrun errors in the receiver. the rts output must be manually asserted the first time. thereafter, the receiver will control the rts output. if the fifo stack contains characters and the receiver is then disabled, the characters in the stack can still be read but no additional characters can be received until the receiver is again enabled. if the receiver is disabled while receiving a character, or while there is a charac- ter in the shift register waiting for a fifo opening, these characters are lost. if the receiver is reset, the fifo stack and all of the receiver status bits, the correspond- ing output ports, and the interrupt request are reset. no additional characters can be received until the receiver is again enabled. loopback modes besides the normal operation mode in which the re- ceiver and transmitter operate independently, each xr68c92/192 channel can be configured to operate in various looping modes (see mr2a, mr2b bits 7:6) that are useful for local and remote system diagnostic functions. automatic echo mode in this mode, the channel automatically retransmits the received data on a bit-by-bit basis. the local cpu-to- receiver communication continues normally but the cpu-to-transmitter link is disabled. local loopback mode in this mode, the transmitter output is internally con- nected to the receiver input. the external tx pin is held in the mark (high) state in this mode. by sending data to the transmitter and checking that the data as- sembled by the receiver is the same data that was sent, proper channel operation can be assured. in this mode the cpu-to-transmitter and cpu-to-receiver commu- nications continue normally. remote loopback mode in this mode, the channel automatically retransmits the received data on a bit-by-bit basis. the local cpu-to- receiver and cpu-to-transmitter links are disabled.
xr68c92/192 12 rev. 1.33 this mode is useful in testing the receiver and transmit- ter operation of a remote channel. this mode requires the remote channel receiver to be enabled. multidrop mode - enhanced with extra a/d tag storage users can program the channel to operate in a wake- up mode for multidrop applications. in this mode of operation (set mr1a, mr1b bits 4:3 = 11), the xr68c92/192, as a master station channel connected to several slave stations (a maximum of 256 unique slave stations), transmits an address character fol- lowed by a block of data characters targeted for one or more of the slave stations. the channel receivers within the slave stations are disabled, but they continu- ously monitor the data stream sent out from the master station. when the slave stations' receivers detect an address character, each receiver notifies its respective cpu by setting receiver ready (-rxrdy) and generat- ing an interrupt, if programmed to do so. each slave station cpu then compares the received address to its station address and enables its receiver if the ad- dresses match. slave stations that are not addressed, continue monitoring the data stream for the next ad- dress character. an address character marks the beginning of a new block of data. after receiving a block of data, the slave stations cpu may disable the chan- nel receiver and re-initiate the process. a transmitted character from the master station con- sists of a start bit, the programmed number of data bits, an address/data (a/d) bit tag (replacing the parity bit used in normal operation), and the programmed num- ber of stop bits. the a/d tag indicates to the slave stations channel whether the character should be interpreted as an address character or a data charac- ter. the character is interpreted as an address charac- ter if the a/d tag is set to a '1' or interpreted as a data character if it is set to a '0'. the polarity of the transmit- ted a/d tag is selected by programming mr1a, mr1b bit-2 to a '1' for an address character and to a '0' for data characters. users should program the mode register prior to loading the corresponding data or address characters into the transmit buffer. as a slave station, the xr68c92/192 receiver continu- ously monitors the received data stream regardless of whether it is enabled or disabled. if the receiver is disabled, it sets the receiver ready status bit and loads the character into the fifo receive holding register stack provided the received a/d tag is a '1' (address tag). the received character is discarded if the received address/data bit is a '0' (data tag). if the receiver is enabled, all received characters are transferred to the cpu during read operations. in either case, the data bits are loaded into the data portion of the fifo stack while the address/data bit is loaded into the status portion of the fifo stack normally used for parity error (sra, srb bit-5). framing error, overrun error, and break-detection operate normally regardless of whether the receiver is enabled or disabled. the address/data (a/d) tag takes the place of the parity bit and parity is neither calculated nor checked for characters in this mode. extra storage for the a/d tag: the unique feature of xr68c92/192 is that the the user need not wait at all in order to change the a/d tag from address to data (whereas in the case of sc26c92, a wait of at least 2 bit-times is required before changing the a/d tag). this allows the user to possibly load the entire polling packet data to the tx fifo. watchdog timer each of the two receivers (channel a & b) has its own 'watchdog timer' which is separate from and indepen- dent of the counter/timer. the watchdog timer is used to generate a receive ready time-out interrupt. when it is enabled, a counter is started everytime a character is transferred from the receive shift register to the receive fifo and times out after 64 bit-times, at which point it will generate a receive interrupt. this is a useful feature especially when the incoming data is not a continous stream of data. for example, if rx trigger levels are used and the last set of characters is smaller than the trigger level, a receive time-out interrupt is generated instead of a regular receive interrupt. the watchdog timer, however, is not accurate as it uses the incoming data for its timing. for more accurate timing, the time-out mode in counter/timer should be used (see below). counter/timer the 16-bit counter/timer (c/t) can operate in a counter mode or a timer mode. in either mode, users can program the c/t input clock source to come from several sources (see acr bits 6:4) and program the c/t output to appear on output port pin op3 (see opcr bits 3:2). the value (pre-load value) stored in the concatenation of the c/t upper register (ctpu, address 0x6) and the c/t lower register (ctpl, ad-
xr68c92/192 13 rev. 1.33 dress 0x7) can be from 0x0001 through 0xffff and can be changed at any time. at power-up and after reset, the c/t operates in counter mode. counter mode in counter mode, the cpu can start and stop the c/t. this mode allows the c/t to function as a system stopwatch or a real-time single interrupt generator. in this mode, the c/t counts down from the pre-load value using the programmed counter clock source. when a read at the start counter command register (address 0xe) is performed, the counter is initialized to the pre-load value and begins a countdown sequence. when the counter counts from 0x0001 to 0x0000 (terminal count), the c/t-ready bit in the interrupt status register (isr bit-3) is set. 3 users can program the counter to generate an inter- rupt request for this condition on the -int output by unmasking the bit-3 in the interrupt mask register (imr, address 0x5). after 0x0000 the count becomes 0xffff, and the counter continues counting down from there. if the cpu changes the pre-load value, the counter will not recognize the new value until it receives the next start counter command (and is reinitialized). when a read at the stop counter command register (address 0xf) is performed, the counter stops the countdown sequence and clears isr bit-3. the count value should only be read while the counter is stopped because only one of the count registers (either cur, at address 0x6 or clr, at address 0x7) can be read at a time. if the counter is running, a decrement of clr that requires a borrow from the cur could take place between the two register reads. figure 2 shows the c/t output in the counter mode. op3 can be pro- grammed to show the c/t output. in addition to the watch dog timer described above, the c/t can be used for receive timeout function (see description under cra, crb in the registers section also). the c/t is more accurate and the timeout period is programmable unlike the watchdog timer. however, only one channel can use the c/t for receive timeout at any given time. the c/t timeout mode uses the received data stream to start the counter. each time a character is shifted from the receive shift register to the receive fifo, the c/t is reloaded with the pro- grammed value in ctpu and ctpl and it restarts on the next c/t clock. if a new character is not received before the c/t reaches terminal count (= 0x0000), a counter ready interrupt (isr bit-3) is generated. the user can appropriately program the ctpu and ctpl for the desired timeout period. typically this is slightly more than one character time. note that if c/t is used for receiver timeout, a counter ready interrupt is gener- ated whereas if the watchdog timer is used, a receiver ready interrupt is generated. timer mode in the timer mode, the c/t runs continuously once the start command is issued (by reading the start c/t preload value terminal count c/t output in counter mode c/t output in timer mode preload value terminal count preload value terminal count preload value preload value terminal count terminal count terminal count preload value preload value start c/t command issued preload value terminal count figure 2: c/t output in timer and counter modes.
xr68c92/192 14 rev. 1.33 command register) and the cpu cannot stop it. when the stop command is issued (by reading the stop c/t command register), the cpu only resets the c/t inter- rupt. this mode allows the c/t to be used as a programmable clock source for channels a and b (see csra, csrb register), and/or a periodic interrupt generator. in this mode, the c/t generates a square- wave output (see figure 2) derived from the pro- grammed timer input clock source. the square wave generated by the timer has a period of 2 x (pre-load value) x (period of clock source) and is available as a clock source for both channels a and b. since the timer cannot be stopped, the values in the registers (cur:clr) should not be read. see description of acr register to see how to choose clock source for the c/t. when the start counter command register (stcr, address 0xe) is read, the c/t terminates the current countdown sequence and sets its output to a '1' (op3 can be programmed to show this output). the c/t is then initialized to the pre-load value, and begins a new countdown sequence. when the terminal count is reached (0x0000), the c/t sets its output to a '0'. then, it gets re-initialized to the pre-load value and repeats the countdown sequence. see figure 2 for the result- ing waveform. the timer sets the c/t-ready bit in the interrupt status register (isr bit-3) every other time it reaches the terminal count (at every rising edge of the output). users can program the timer to generate an interrupt request for this condition (every second countdown cycle) on the -int output. if the cpu changes the pre- load value, the timer will not recognize the new value until either (a) it reaches the next terminal count and is reinitialized automatically, or (b) it is forced to re-initialize by a start command. when a read at the stop counter command address is performed, the timer clears isr bit-3 but does not stop. because in timer mode the c/t runs continuously, it should be completely configured (pre-load value loaded and start counter command issued) before programming the timer output to appear on op3. other programming remarks the contents of internal registers should not be changed during receiver/transmitter operation as cer- tain changes can produce undesired results. for ex- ample, changing the number of bits per character while the transmitter is active will result in transmitting an incorrect character. the contents of the clock-select register (csr) and acr bit-7 should only be changed after the receiver(s) and transmitter(s) have been issued software rx and tx reset commands. simi- larly, changes to the auxiliary control register (acr bits 4-6) should only be made while the counter/timer (c/t) is not used. the mode registers of each channel mr0, mr1 and mr2 are accessed via an auxiliary pointer. the pointer is set to mode register one (mr1) by reset. it can be set to mr0 or mr1 by issuing a ?reset pointer? command (0xb0 or 0x10 respectively) via the channel's command register. any read or write of the mode register switches the pointer to next mode reg- ister. all accesses subsequent to reading/writing mr1 will address mr2 unless the pointer is reset to mr0 or mr1 as described above. the mode, command, clock-select, and status registers are duplicated for each channel to allow independent operation and control (except that both channels are restricted to baud rates that are in the same set).
xr68c92/192 15 rev. 1.33 internal register descriptions a3 a2 a1 a0 read operation write operation 0000 mode register a (mr0a, mr1a, mr2a) mode register a (mr0a, mr1a, mr2a) 0001 status register a (sra) clock-select register a (csra) 0010 reserved command register a (cra) 0011 receiver buffer a (rxa) transmitter buffer a (txa) 0100 input port change register (ipcr) auxiliary control register (acr) 0101 interrupt status register (isr) interrupt mask register (imr) 0110 counter/timer upper register (cur) c/t preload value upper register (ctpu) 0111 counter/timer lower register (clr) c/t preload value lower register (ctpl) 1000 mode register b (mr0b, mr1b, mr2b) mode register b (mr0b, mr1b, mr2b) 1001 status register b (srb) clock-select register b (csrb) 1010 reserved command register b (crb) 1011 receiver buffer b (rxb) transmitter buffer b (txb) 1100 interrupt vector register (ivr) interrupt vector register (ivr) 1101 input port register (ipr) output port configuration register (opcr) 1110 start c/t command (stcr) set output port register (sopr) 1111 stop c/t command (spcr) reset output port register (ropr)
xr68c92/192 16 rev. 1.33 a3 a2 a1 a0 register bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 [default] 0000 mra0[00] watch rx tx tx not baud factory baud dog timer trigger trigger trigger used rate test rate level [1] level [1] level [0] ext. 2 mode ext. 1 1000 mrb0[00] watch rx tx tx not not not not dog timer trigger trigger trigger used used used used level [1] level [1] level [0] 0000 mra1[00] rx rx error parity parity parity word word 1000 mrb1[00] rts trigger mode mode mode type length length control level [0] 0000 mra2[00] loopback loopback tx auto stop stop stop stop 1000 mrb2[00] mode mode rts cts bit bit bit bit select select control control length length length length 0001 sra[00] received framing parity overrun tx tx rx fifo rx 1001 srb[00] break error error error empty ready full ready 0001 csra[00] rx rx rx rx tx tx tx tx 1001 csrb[00] clock clock clock clock clock clock clock clock 0010 cra[00] misc. misc. misc. misc. tx tx rx rx 1010 crb[00] command command command command disable enable disable enable 0011 rxa[xx] bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 1011 rxb[xx] 0011 txa[xx] bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 1011 txb[xx] 0100 ipcr[00] delta delta delta delta ip3 ip2 ip1 ip0 ip3 ip2 ip1 ip0 input input input input 0100 acr[00] baud c/t c/t c/t delta delta delta delta rate set mode mode mode ip3 ip2 ip1 ip0 select int. int. int. int. 0101 isr[00] input delta rxb txb c/t delta rxa txa port break b ready ready ready break a ready ready change 0101 imr[00] input delta rxb txb c/t delta rxa txa port break b ready ready ready break a ready ready change 0110 ctpu[00] bit-15 bit-14 bit-13 bit-12 bit-11 bit-10 bit-9 bit-8 cur[00] 0111 ctpl[00] bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 clr[00] 1100 ivr[0f] bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 1 1 0 1 ipr[xx] not not ip5 ip4 ip3 ip2 ip1 ip0 used used 1101 opcr[00] op7 op6 op5 op4 op3 op3 op2 op2 1110 stcr[xx] xxxxxxxx 1110 sopr[00] bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0 1111 spcr[xx] xxxxxxxx 1111 ropr[00] bit-7 bit-6 bit-5 bit-4 bit-3 bit-2 bit-1 bit-0
xr68c92/192 17 rev. 1.33 mode register 0 (mr0a, mr0b) this register is accessed only when command is applied via cra, crb register (upper nibble = 0xb). after reading or writing to mr0a (or mr0b) register, the mode register pointer will point to mr1a (or mr1b) register. mr0a bit-0: extended baud rate table selection for both channels. 0 = normal baud rate tables 1 = extended baud rate tables 1 mr0a bit-1: special function. 0 = normal 1 = factory test mode mr0a bit-2: extended baud rate table selection for both channels. 0 = normal baud rate tables 1 = extend baud rate tables 2 mr0a bit-3, mr0b bits 3-0: not used. any write to this bit is ignored. mr0a, mr0b bits 5-4: transmit trigger level select. bit-5 bit-4 xr68c92 0 0 8 fifo locations empty (default) 0 1 4 fifo locations empty 1 0 6 fifo locations empty 1 1 1 fifo location empty bit-5 bit-4 xr68c192 0 0 16 fifo locations empty (default) 0 1 6 fifo locations empty 1 0 12 fifo locations empty 1 1 1 fifo location empty mr0a, mr0b bit-6: receive trigger level select. this bit is associated with mr1 bit-6. mr0 bit-6 mr1 bit-6 xr68c92 0 0 1 byte in fifo (default) 0 1 3 bytes in fifo 1 0 6 bytes in fifo 1 1 8 bytes in fifo mr0 bit-6 mr1 bit-6 xr68c192 0 0 1 byte in fifo (default) 0 1 6 bytes in fifo 1 0 12 bytes in fifo 1 1 16 bytes in fifo mr0a, mr0b bit-7: receive time-out (watch dog timer). 0 = disabled (default) 1 = enabled see description under 'watchdog timer'. mode register 1 (mr1a, mr1b) mr1a, mr1b are accessed after reset or by command applied via cra, crb register (upper nibble = 0x1). after reading or writing to mr1a (or mr1b) register, the mode register pointer will point to mr2a (or mr2b) register. mr1a, mr1b bits 1-0: character length 0 0 = 5 (default) 1 0 = 7 0 1 = 6 1 1 = 8 mr1a, mr1b bit-2: in non-multidrop mode, this bit selects the parity. 0 = even parity (default) 1 = odd parity in multidrop mode, this bit is the address/data flag. 0 = data (default) 1 = address mr1a, mr1b bit 4-3: parity mode. 00 = with parity (default) 10 = no parity 01 = force parity 11 = multidrop mode mr1a, mr1b bit-5: data error mode. 0 = single character mode (default) 1 = block (fifo) mode mr1a, mr1b bit-6. receive trigger levels. see description under mr0 bit- 6. mr1a, mr1b bit-7: receive rts flow control. 0 = no rx rts control function (default) 1 = auto rx rts control function the output op0 (op1) serves as the -rts signal for channel a (channel b). note that mr2 a/b bit-5 also controls op0 (op1). only one of mr1 bit-7 or mr2 bit- 5 should be set to '1'. mode register 2 (mr2a, mr2b) this register is accessed after any read or write operation to mr1a (or mr1b) register is performed. any read or write to mr2a (or mr2b) does not change the mode register pointer. user should use one of the
xr68c92/192 18 rev. 1.33 two reset mr pointer command (see command register) to reset the pointer to mr0 or mr1. mr2a, mr2b bits 3-0: stop bit length. 0000 = 0.563 (default) 1000 = 1.563 0001 = 0.625 1001 = 1.625 0010 = 0.688 1010 = 1.688 0011 = 0.750 1011 = 1.750 0100 = 0.813 1100 = 1.813 0101 = 0.875 1101 = 1.875 0110 = 0.938 1110 = 1.938 0111 = 1.000 1111 = 2.000 mr2a, mr2b bit-4: auto cts flow control. 0 = no auto cts flow control (default) 1 = auto cts flow control enabled mr2a, mr2b bit-5: auto transmit rts control. 0 = no auto tx rts control (default) 1 = auto transmit rts function enabled the output op0 (op1) serves as the -rts signal for channel a (channel b). note that only one of mr1 bit- 7 or mr2 bit-5 should be set to '1'. mr2a, mr2b bit 7-6: loopback mode select. 0 0 = no loopback (default) 0 1 = automatic echo 1 0 = local loopback 1 1 = remote loopback status register (sra, srb) sra, srb bit-0: receive ready. this bit indicates that one or more character(s) has been received and is waiting in the fifo for the cpu to read them. it is set when the first character is transferred from the receive shift register to the empty fifo, and cleared when the cpu reads the receiver buffer and there are no more characters in the fifo after the read. sra, srb bit-1: receive fifo full. this bit is set when a character is transferred from the receive shift register to the receiver fifo and the transfer fills the fifo. all eight (or 16 in xr88c192) fifo locations are occupied. it is cleared when the cpu reads the receiver buffer, unless another charac- ter is in the receive shift register waiting for an empty fifo location. sra, srb bit-2: transmit ready. this bit (when set) indicates that the transmit fifo is not full. transmitter ready bit is set when the transmit fifo has at least one empty location. this bit is cleared when the transmit fifo is full. sra, srb bit-3: transmit empty. this bit will be set when the channel's transmitter is empty. it indicates that both the transmit fifo and the transmit shift register are empty. it is set after transmis- sion of the last stop bit of the last character in the tx fifo. it is cleared when the cpu loads a character into the transmit fifo or when the transmitter is disabled. sra, srb bit-4: overrun error. this bit is set when one or more characters in the received data stream have been lost. it is set on receipt of a valid start bit when the fifo is full and a character is already in the receive shift register waiting for an empty fifo position. when this occurs, the character in the receive shift register (and its break detect, parity error, and framing error status, if any) is overwritten. a reset error status command clears this bit. sra, srb bit-5: parity error. this bit is set when the ?with parity? or ?force parity? mode is programmed by mr1a (or mr1b) and an incoming character is received with incorrect parity. in the multidrop mode, the parity error bit position stores the received address/data tag. this bit is valid only when the rxrdy bit is set (sra, srb bit-0 = 1). sra, srb bit-6: framing error. this bit is set when a stop bit was not detected when the corresponding data character in the fifo was re- ceived. the stop bit check is made in the middle of the first stop bit position. at least one bit in the received character (data or parity) must have been a ?1? to signal a framing error. after a framing error, the receiver does not wait for the line to return to the marking state (high). if the line remains low for 1/2 a bit time after the stop bit sample (that is, the nominal end of the first stop bit), the receiver treats it as the beginning of a new start bit.this bit is valid only when the rxrdy bit is set (sra, srb bit-0 = 1). sra, srb bit-7: received break. this bit indicates a character with all data bits being zero has been received without a stop bit. this bit is valid only when the rxrdy bit is set (sra, srb bit-0 = 1). only a single fifo position is occupied when a break is received; for longer break signals, additional entries to the fifo are inhibited until the channel a/b receiver serial data input line returns to the marking state. the break-detect circuitry can detect a break that starts in the middle of a received character how- ever, the break condition must persist completely through the end of the current character and the next character time to be recognized as a break signal.
xr68c92/192 19 rev. 1.33 baud rate table for a 3.6864mhz clock. data rates would double for a 7.3728mhz clock. clock select register (csra, csrb) transmit / receive baud rates for channels a, b can be selected via this register. csra, csrb bits 3-0. transmit clock select(see baud rate table). csra, csrb bits 7-4. receive clock select (see baud rate table). command register (cra, crb) cra, crb register is used to supply commands to a, b channels respectively. multiple commands can be specified in a single write to cra, crb as long as commands are non-conflicting. cra, crb bits 1-0: receiver commands. 0 0 = no action, stays in present mode (default) 0 1 = receiver enabled 1 0 = receiver disabled 1 1 = don?t use cra, crb bits 3-2: transmitter commands. 0 0 = no action, stays in present mode (default) 0 1 = transmitter enabled 1 0 = transmitter disabled 1 1 = don?t use cra, crb bits 7-4: miscellaneous commands. 0 0 0 0 = no command (default). 0 0 0 1 = reset mr pointer to mr1. 0 0 1 0 = reset receiver. receiver is disabled and fifo is flushed. 0 0 1 1 = reset transmitter. transmitter is disabled and fifo is flushed. 0 1 0 0 = reset error status. clears channel a/b, break, parity, and over-run error bits in the status register. 0 1 0 1 = reset channel's break-change interrupt. clears channel a/b break detect change bit in the interrupt status register (isr bit-2 for channel a and isr bit-6 for channel b). * baud rate is independent of mr0 bit-0 & bit-2 and acr bit-7 settings. mr0a bits mr0a bit-0=1 mr0a bit-0=0 2,0=0 bit-2=0 bit-2=1 (extended table 1) (extended table 2) csra, csrb set-1 set-2 set-1 set-2 set-1 set-2 bits 7:4 or acr acr acr acr acr acr bits 3:0 bit-7=0 bit-7=1 bit-7=0 bit-7=1 bit-7=0 bit-7=1 0000 (default) 50 75 300 450 4800 7200 0001 110 110 110 110 880 880 0010 134.5 134.5 134.5 134.5 1076 1076 0011 200 150 1200 900 19.2k 14.4k 0100 300 300 1800 1800 28.8k 28.8k 0101 600 600 3600 3600 57.6k 57.6k 0110 1200 1200 7200 7200 115.2k 115.2k 0111 1050 2000 1050 2000 1050 2000 1000 2400 2400 14.4k 14.4k 57.6k 57.6k 1001 4800 4800 28.8k 28.8k 4800 4800 1010 7200 1800 7200 1800 57.6k 14.4k 1011 9600 9600 57.6k 57.6k 9600 9600 1100 38.4k 19.2k 230.4k 115.2k 38.4k 19.2k 1101 timer timer timer timer timer timer 1110* ip3-16x (csra 3:0), ip4-16x (csra 7:4), ip5-16x (csrb 3:0), ip6-16x (csrb 7:4) 1111* ip3-1x (csra 3:0), ip4-1x (csra 7:4), ip5-1x (csrb 3:0), ip6-1x (csrb 7:4)
xr68c92/192 20 rev. 1.33 0 1 1 0 = start break. forces the transmitter output to go low and stay low. if transmitter is empty the start of the break condition will be de- layed up to two bit times. if transmitter is active, all the characters in the fifo are transmitted before break signal is sent. transmitter must to be enabled for this command to work. 0 1 1 1 = stop break. transmit output will go high within two bit times. 1 0 0 0 = set -rts output to low (assertion). 1 0 0 1 = reset -rts output to high (negation). 1 01 0 = set timeout mode on. the receiver in this channel will restart the c/t as each receive character is transferred from the shift regis- ter to the receive fifo. the c/t is placed in the counter mode, the start/stop counter commands are disabled, the counter is stopped, and the counter ready bit, isr bit-3 is reset. (see also watchdog timer description) 1 0 1 1 = set mr pointer to mr0. 1 1 0 0 = disable timeout mode. this command re- turns control of the c/t to the regular start/ stop counter commands. it does not stop the counter or clear any pending interrupts. after disabling the timeout mode, a ?stop counter? command should be issued to force a reset of the isr bit-3. 1 1 0 1 = not used. 1 1 1 0 = enable power down mode. in this mode, the duart oscillator is stopped and all func- tions requiring this clock are suspended. the execution of commands other than dis- able power down mode (1111) requires a xtal1. while in the power down mode, do not issue any commands to the cra or crb except the disable power down mode com- mand. the contents of all registers will be saved while in this mode. it is recommended that the transmitter and receiver be disabled prior to placing the duart into power down mode. this command is in cra only. 1 1 1 1 = disable power down mode. this command restarts the oscillator. after invoking this command, wait for the oscillator to start up before writing further commands to the cr a/ b. for maximum power reduction all input pins should be at gnd or vcc. this com- mand is in cra only. receive buffer (rxa, rxb) the receive buffer consists of a 8-characters deep fifo in xr68c92 and 16-characters deep fifo in xr68c192. the received characters are transferred from the shift register one at a time to the fifo and are stored there until read by the cpu or flushed by a reset receiver command. transmit buffer (txa, txb) the transmit buffer consists of a 8-characters deep fifo in xr68c92 and 16-characters deep fifo in xr68c192. once loaded in the fifo, the characters are transferred to the transmit shift register one at a time and transmitted unless the transmitter is disabled. input port change register (ipcr) this is a read-only register which gives the state and the change-of-state information of the multi-purpose inputs ip0, ip1, ip2 and ip3. ipcr bits 3-0: levels of ip3 - ip0. these show the current state of ip3, ip2, ip1 and ip0 respectively. 0 = low 1 = high ipcr bits 7-4: transitions of ip3 - ip0. these indicate if there has been a change of state in ip3, ip2, ip1 and ip0 respectively. they are cleared when the register is read by the cpu. 0 = no 1 = yes auxiliary control register (acr) acr bits 3-0: this field selects which bits of the input port change register (ipcr) cause the interrupt status register (isr) bit-7 to be set. for example, if bit-0 = 1, then a change of state in ip0 will set isr bit-7. if bit-0 and bit- 2 are both '1', then whenever ip0 or ip2 changes state, isr bit-7 will be set. 0 = disabled (default) 1 = enabled acr bits 6-4: counter/timer mode and clock source. these bits should not be altered while the c/t is in use. prior to changing these bits, the c/t must be stopped if in counter mode. if the c/t is in timer mode, its output
xr68c92/192 21 rev. 1.33 must be disabled and its interrupt must be masked. the following table shows how to select the clock source for the c/t when used in counter mode or timer mode: acr bit-7: baud rate table select. this bit is used to select between two sets of baud rate tables. see baudrate table on page 18. it should be changed only after both channels have been reset and disabled. 0 = set 1 1 = set 2 isr bit-1: receive ready a . this bit is set when channel a's receive buffer (fifo) is filled above the programmed receive trigger level condi- tion (see mr0a bit-6 and mr1a bit-6). for example, if a rx trigger level of '6' is chosen, this bit will be set whenever the rx fifo contains six or more bytes. this bit can be cleared by reading the data out of the fifo till it falls below the trigger level. isr bit-2: channel a change in break. this bit is set when channel a receiver detects the beginning or the end of a break condition. it is reset when the cpu issues a channel a reset break change interrupt command (cra bits 7-4 = 0x5). isr bit-3: counter/timer (c/t) ready. in counter mode, this bit is set when the c/t reaches terminal count. in timer mode, this bit is set each time the c/t output switches from low to high (rising edge - see figure 2). in either mode, this bit is cleared by a stop counter command. isr bit-4: transmit ready b. this bit is set when channel b's transmit buffer (fifo) is filled below the programmed transmit trigger level (see mr0b bits 5-4). for example, if a tx trigger level of '4' is chosen, this bit will be set whenever the tx fifo has four or more empty locations. this bit can be cleared by loading the tx fifo above the trigger level. isr bit-5: receive ready b. this bit is set when channel b's receive buffer (fifo) is filled above the programmed receive trigger level condition (see mr0b bit-6 and mr1b bit-6). for ex- ample, if a rx trigger level of '6' is chosen, this bit will be set whenever the rx fifo contains six or more bytes. this bit can be cleared by reading the data out of the fifo till it falls below the trigger level. isr bit-6. channel b change in break. this bit is set when channel b receiver detects the beginning or the end of a break condition. it is reset when the cpu issues a channel b reset break change interrupt command (crb bits 7-4 = 0x5). isr bit-7. input port change status. this bit is set when a change of state has occurred at the ip0, ip1, ip2, or ip3 inputs, and that event has been enabled to cause an interrupt by programming acr bits 3-0. this bit is cleared when the cpu reads the input port change register. interrupt status register (isr) this register provides the status of all potential interrupt sources. the contents of this register are logically ?and?-ed with the contents of the interrupt mask register, and the results are ?or?-ed. the resulting signal is inverted to produce the -int output. all active interrupt sources are visible by reading the isr, re- gardless of the contents of the interrupt mask register. reading the isr has no effect on any interrupt source. each active interrupt source must be cleared in a source-specific fashion to clear the isr. all interrupt sources are cleared when the xr68c92/192 is reset. 4 isr bit-0: transmit ready a. this bit is set when channel a's transmit buffer (fifo) is filled below the programmed transmit trigger level (see mr0a bits 5-4). for example, if a tx trigger level of '4' is chosen, this bit will be set whenever the tx fifo has four or more empty locations. this bit can be cleared by loading the tx fifo above the trigger level. acr c/t clock source bits 6:4 mode 0 0 0 counter external (ip2) 0 0 1 counter txaclk1-transmit a 1x clock 0 1 0 counter txbclk1-transmit b 1x clock 0 1 1 counter crystal or external clock (xtal1/clk) divided by 16 1 0 0 timer external (ip2) 1 0 1 timer external (ip2) divided by 16 1 1 0 timer crystal or external clock (xtal1/clk) 1 1 1 timer crystal or external clock (xtal1/clk) divided by 16
xr68c92/192 22 rev. 1.33 interrupt mask register (imr) this register selects which bits in the interrupt status register can cause an interrupt output. if a bit in the interrupt status register is a ?1? and the corresponding bit in this register is also a ?1?, the -int output will be asserted. if the corresponding bit in this register is a zero, the state of the bit in the interrupt status register has no effect on the -int output. note that the interrupt mask register does not have any effect on the pro- grammable interrupt outputs op7 through op3 or the value read from the interrupt status register. 0 = interrupt output (-int) disabled (default) 1 = enable interrupt output for the event controlled by the corresponding bit in isr. counter / timer registers the preload value upper ( ctpu ) and lower ( ctpl ) registers hold the most-significant byte and the least- significant byte, respectively, of the value to be used by the c/t (in both counter and timer modes). the c/t upper ( cur ) and lower registers ( clr ) give the current value of the c/t, at the time they are read. in the counter mode, the cur and clr should only be read when the counter is stopped. upon receiving a start command after a stop command, the counter starts a fresh cycle and begins counting down from the original (preload) value written to ctpu and ctpl. also changing the value of these registers does not take effect till the current cycle is stopped and a subsequent start command is issued. in the timer mode, the cur and clr registers cannot be read by the cpu. a stop command will not stop the timer, but will only clear the counter ready status bit in isr (bit-3). changing the value of the ctpu and ctpl registers when the timer is running will change the waveform after the current half-period of the square wave. for more details, see the counter/timer sec- tion. general purpose register (gpr) this is a general purpose scratchpad register which can be used to store and retrieve one byte of user infomation. input port register - read only the current state of the multi-purpose inputs (ip0-ip6) can be read via this register. ipr bit 0-5: 0 = inputs are in low state. 1 = inputs are in high state. ipr bit 6-7: not used and set to ?0?. output port configuration register (opcr) - write only this register selects following options for the multi- purpose outputs op2 to op7. 4 alternate functions of op1 and op0 are controlled by the mode registers, not the opcr. mr1a bit-7 and mr2a bit-5 control op0. mr1b bit-7 and mr2b bit-5 control op1. for more details on these, see 'multi-purpose outputs' on page 8. op2 output select bit-1 bit-0 0 0 controlled by sopr and ropr (default) 0 1 txaclk16-transmit a 16x clock 1 0 txaclk1-transmit a 1x clock 1 1 rxaclk1- receive a 1x clock op3 output select bit-3 bit-2 0 0 controlled by sopr and ropr (default) 0 1 c/t output 1 0 txbclk1-transmit b 1x clock 1 1 rxbclk1- receive b 1x clock if op3 is to be used for the timer output (a square wave of the programmed frequency), program the counter/ timer for timer mode (acr bit-6 = 1), initialize the counter/timer pre-load registers (ctpu and ctpl), and read the 'start c/t command register' (stcr) before setting opcr bits 3-2 = 01. in the counter mode, the output remains high until the terminal count is reached, at which time it goes low. the output becomes high again when the counter is stopped by a stop counter command. op4 output select (bit 4): 0 = controlled by sopr and ropr (default) 1 = -rxardy which is the complement of isr bit-1
xr68c92/192 23 rev. 1.33 op5 output select (bit 5): 0 = controlled by sopr and ropr (default) 1 = -rxbrdy which is the complement of isr bit-5 op6 output select (bit 6): 0 = controlled by sopr and ropr (default) 1 = -txardy which is the complement of isr bit-0 op7 output select (bit 7): 0 = controlled by sopr and ropr (default) 1 = -txbrdy which is the complement of isr bit-4 start counter/timer register (stcr) - read only reading from this register will start the c/t. data values returned should be ignored. stop counter/timer register (spcr) - read only reading from this register will stop the c/t. data values returned should be ignored. set output port register (sopr) - write only output ports (op0-op7), when used as general pur- pose outputs, can be asserted (set to low) by writing a ?1? to the corresponding bit in this register. once an output is asserted, it can be negated only by issuing a command through the reset output port register (see below). however, note that sopr and ropr cannot be used to assert and negate outputs that are programmed for alternate functions (see description under opcr). for example, if op0 is programmed to output -rtsa (see 'configuring multi-purpose outputs), it cannot be con- trolled by sopr or ropr. in that case, commands from the command register should be issued to assert (cra bits 7:4 = 0x8) and negate (cra bits 7:4 = 0x9) op0. sopr bit 0-7: 0 = no change (same state). 1 = assert the corresponding output (set it low). reset output port register (ropr) - write only each output port bit can be changed to high state by writing a ?1? to each individual bit. ropr bit 0-7: 0 = no change (same state). 1 = negate the corresponding output (set it high).
xr68c92/192 24 rev. 1.33 programming examples the following examples show how to initialize the xr68c92/192 for various operating conditions: a) the first example will initialize channel a of an xr68c92 device for regular rx/tx. the operating parameters will be 9600 baud, 8 word length, no parity and 1 stop bit. operation register value remarks write cra 0x20 ; reset rx (receiver) write cra 0x30 ; reset tx (transmitter) write cra 0x40 ; reset error status write cra 0xb0 ; reset mr pointer to mr0 write mr0a 0x00 ; use normal baud rate table. now mr pointer points to mr1 write mr1a 0x13 ; select word length & parity. now mr pointer points to mr2 write mr2a 0x07 ; normal mode (not loopback) & 1 stop bit write csra 0xbb ; 9600 baud for rx & tx - clock source is xtal1 write cra 0x05 ; enable rx & tx read sra ; should get a value 0x0c b) this example will show how to use hardware flow control for both rx (rts via op0) and tx (cts via ip0): write cra 0x10 ; reset mr pointer to mr1 write mr1a 0x93 ; select auto rts control. the -rts signal is sent via output op0 write mr2a 0x17 ; select auto cts control. the input ip0 serves as the -cts signal c) this example will configure clock sources for tx and rx of both channels and c/t. specifically, xtal1 will be used as channel a's tx clock; ip4 as channel a's 16x rx clock; ip5 as channel b's 1x tx clock and xtal1 as channel b's rx clock. also, the c/t will be initialized in the timer mode and ip2 will be used as its clock source. some of these will be programmed to appear at the multi-purpose output pins: write acr 0x40 ; c/t initialized in timer mode & ip2 chosen as its clock source ; also, bit-7 = 0, therefore baud rate set1 has been selected write ctpu 0x00 ; it is essential to program ctpu & ctpl before programming op3 write ctpl 0x05 ; as c/t output (see below) write csra 0xeb ; channel a rx clock source: ip4-16x, tx clock source: xtal1 (if mr0a ; bits 2 and 0 = 0, the tx baud rate is 9600) write csrb 0xbf ; channel b rx clock source: xtal1 (9600 baud), tx clock source: ip5-1x read stcr ; start the c/t write opcr 0x06 ; c/t output appears at op3 and channel a's tx 1x clock (this is xtal1 ; clock divided by 16) at op2. d) the next example will show how to configure and run channel b's transmitter in a multi-drop application. note that all other relevant parameters should be configured already, like baud rate etc. write crb 0x10 ; reset mr pointer to mr1 write mr1b 0x1b ; word length = 8 and use a/d tag in the place of parity write crb 0x04 ; enable transmitter of channel b write txb address ; send the address first (a/d tag = 1) write crb 0x10 ; reset mr pointer to mr1 write mr1b 0x13 ; change a/d tag = 0 write txb data ; you can load the data (a/d tag = 0) immediately after the address. there is no ; need to wait till the transmitter is empty. load all the data. check to see if the read srb ; transmitter is empty & ready. you need to do this before you can load the next ; address. repeat the last 5 steps to load different addresses and their data.
xr68c92/192 25 rev. 1.33 absolute maximum ratings supply range 7 volts voltage at any pin gnd - 0.3 v to vcc +0.3 v operating temperature -40 c to +85 c storage temperature -65 c to 150 c package dissipation 500 mw dc electrical characteristics for xr68c92 and xr68c192 t a =0 - 70c (-40 - +85c for industrial grade packages), vcc=3.3 - 5.0 v 10% unless otherwise specified. v ilck clock input low level -0.3 0.6 -0.5 0.6 v v ihck clock input high level 2.4 vcc 3.0 vcc v (devices with top marking of "cc" and older) v ihck clock input high level 2.4 5.5 3.0 5.5 v (devices with top marking of "d2" and newer) v il input low level -0.3 0.8 -0.5 0.8 v v ih input high level 2.0 vcc 2.2 vcc v (devices with top marking of "cc" and older) v ih input high level 2.0 5.5 2.2 5.5 v (devices with top marking of "d2" and newer) v ol output low level on all outputs 0.4 v i ol = 8 ma v ol output low level on all outputs 0.4 v i ol = 5 ma v oh output high level 2.4 v i oh = -8 ma v oh output high level 2.4 v i oh = -1 ma i il input leakage 10 10 a i cl clock leakage 10 10 a i cc avg power supply current 1.0* 1.5* ma i pd avg power-down supply current (68c92) 100* 150* a i pd avg power-down supply current (68c192) 200* 300* a c p input capacitance 5 5 pf symbol parameter limits limits units conditions 3.3 5.0 min max min max *all inputs tied to vcc/gnd.
xr68c92/192 26 rev. 1.33 ac electrical characteristics t a =0 - 70c (-40 - +85c for industrial grade packages), vcc=3.3 - 5.0 v 10% unless otherwise specified. t 1w, t 2w clock pulse duration 17 17 ns t 3w oscillator/clock frequency 8 24 mhz t as address valid to -cs low 0 0 ns t ah -cs high to address invalid 0 0 ns t rws r/-w setup time to -cs low 0 0 ns t rwh r/-w hold time from -cs high 0 0 ns t dd -cs/-iack low to data valid (read) 51 32 ns t ds data valid to -cs high (write) 20 10 ns t dh -cs high to data invalid (write) 1 1 ns t df -cs/-iack high to data hi-z (read) 30 20 ns t csl -cs low pulse width 100 70 ns t csh -cs high pulse width 100 70 ns t akl -cs/-iack low to -dack low 70 42 ns t akh -cs/-iack high to -dack high 45 27 ns t akt -cs/-iack high to -dack hi-z 70 43 ns t 9s port input setup time 0 0 ns t 9h port input hold time 0 0 ns t 10d delay from r/-w to output 110 110 ns t 11d delay to reset interrupt from -cs 100 100 ns t r reset pulse width 2 2 clks* n baud rate divisor 1 2 16 -1 1 2 16 -1 n/a * number of input clock (crystal or external clock) periods symbol parameter limits limits units conditions 3.3 5.0 min max min max
xr68c92/192 27 rev. 1.33 figure 3: bus timing (read/write cycle) read cycle timing write cycle timing a4-a1 -cs d7-d0 r/-w -dack t as t ah t rws t rwh t dd t akh t akl t akt a4-a1 -cs d7-d0 r/-w -dack t as t ah t rws t rwh t akh t akl t csl t csh t csl t csh valid data t dh t ds t akt t df
xr68c92/192 28 rev. 1.33 exclk xr92-ck t1w t2w t3w figure 6: external clock timing figure 5: output port timing figure 7: interrupt timing -iack interrupt vector -int d7-d0 -dack t akl t dd t df t akh t ak t hi-z figure 4: input port timing t9s t9h ip6-ip0 xr92-ip -cs t10d op7-op0 xr92-op -cs old data new data
xr68c92/192 29 rev. 1.33 figure 8: receive timing figure 9: transmit timing xr92-rx d1 d2 d8 d9 d10 d11 d12 d13 rx rx enable -rxrdy -ffull -rxrdy/ -ffull -cs (read) overrun error -rts status data (d1) status data (d2) status data (d3) status data (d10) d11 will be lost due to overrun reset by command d12, d13 will be lost due to rx disable xr692-tx d1 d2 d3 d4 break d5 tx tx enable -txrdy -cs (write) -cts -rts
xr68c92/192 30 rev. 1.33 40 1 21 20 d e a 1 e 1 a l seating plane a 2 b 1 b package outline draw ing 40 lead plastic dual-in-line (pdip) symbol min ma x min ma x inches millimeters a l e b e a e e 1 e d c b 1 b a 2 a 1 6.35 15 0 5.08 17.78 14.73 15.88 53.21 0.38 1.78 0.56 4.95 1.78 4.06 0 0 2.92 15.24 15.24 bsc 2.54 bsc 12.32 15.24 50.29 0.20 0.76 0.36 3.18 0.38 0.250 15 0 0.200 0.700 0.580 0.625 2.095 0.014 0.070 0.024 0.195 0.070 0.160 0 0 0.115 0.600 0.600 bsc 0.100 bsc 0.485 0.600 1.980 0.008 0.030 0.014 0.125 0.015 note: the control dimension is the inch column e c e b e a
xr68c92/192 31 rev. 1.33 1 d d 1 a a 1 d d 1 d 3 b a 2 b 1 e seating plane d 2 244 d 3 c r 45 x h 2 45 x h 1 package outline draw ing 44lead plastic leaded chip carrier (plcc) symbol min ma x min ma x inches mil l imeters a r h 2 h 1 e d 3 d 2 d 1 d c b 1 b a 2 a 1 4.57 1.14 1.22 1.42 16.00 16.66 17.65 0.32 0.81 0.53 ------ 3.05 4.19 0.64 1.07 1.07 1.27bsc 12.70 typ 14.99 16.51 17.40 0.19 0.66 0.33 0.51 2.29 0.180 0.045 0.048 0.056 0.630 0.656 0.695 0.013 0.032 0.021 ----- 0.120 0.165 0.025 0.042 0.042 0.50 bsc 0.500 typ 0.590 0.650 0.685 0.008 0.026 0.013 0.020 0.090 note: the control dimension is the inch column
xr68c92/192 32 rev. 1.33 3 3 2 3 2 2 1 2 1 1 1 3 4 4 4 d d 1 d d 1 b e a 2 a 1 a seating plane l c symbol min max min max inches millimeters a l e d 1 d c b a 2 a 1 1.60 7 0 0.75 10.10 12.20 0.20 0.45 1.45 0.15 1.40 0 0 0.45 0.80 bsc 9.90 11.80 0.09 0.30 1.35 0.05 0.063 7 0 0.030 0.398 0.480 0.008 0.018 0.057 0.006 0.055 0 0 0.018 0.0315 bsc 0.390 0.465 0.004 0.012 0.053 0.002 note: the control dimension is the inch column package outline drawing 44 lead low-profile quad flat pack (lqfp)
xr68c92/192 33 rev. 1.33 notice exar corporation reserves the right to make changes to the products contained in this publication in order to improve design, performance or reliability. exar corporation assumes no responsibility for the use of any circuits described herein, conveys no license under any patent or other right, and makes no representation that the circuits are free of patent infringement. charts and schedules contained here in are only for illustration purposes and may vary depending upon a user's specific application. while the information in this publication has been carefully checked; no responsibility, however, is assumed for inaccuracies. exar corporation does not recommend the use of any of its products in life support applications where the failure of the product can reasonably be expected to cause failure of the life support system or to significantly affect its safety or effectiveness. products are not authorized for use in such applications unless exar corporation receives, in writing, assurances to its satisfaction that: (a) the risk of injury or damage has been minimized; (b) the user assumes all such risks; (c) potential liability of exar corporation is adequately protected under the circumstances. copyright 2005 exar corporation datasheet august 2005 send your uart technical inquiry with technical details to hotline: uarttechsupport@exar.com reproduction, in part or whole, without prior written consent of exar corporation is prohibited. explanation of data sheet revisions: from to changes date 1.20 1.30 added and updated device status to front page. august 2003 added 5v tolerant input descriptions. clarified programming example d. clarified sra, srb bit-2 description. 1.30 1.31 clarified that 5v tolerant inputs are only for devices with top marking of sept 2003 "d2" and newer. devices with top marking of "cc" or newer do not have 5v tolerant inputs. 1.31 1.32 clarified that extended baud rate tables can only be selected via february 2005 mr0a for both channels. 1.32 1.33 removed discontinued packages in ordering information. august 2005 updated the 1.4mm-thick quad flat pack package description from "tqfp" to "lqfp" to be consistent with jedec and industry norms.


▲Up To Search▲   

 
Price & Availability of XR68C92CJ-0A-EVB

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X